package org.lwxyz.qiniu.auth;

import com.qiniu.util.Auth;

/**
 * @description 鉴权
 * @author yuwei
 * @version 1.0-SNAPSHOT
 * @date 2018/1/31
 */
public final class Authorize {

    /**
     * 获取token
     * @return
     */
    public static String getToken(){
        Auth auth = Auth.create(QiNiuConfig.ACCESS_KEY, QiNiuConfig.SECRET_KEY);
        String token = auth.uploadToken(QiNiuConfig.BUCKET);
        return token;
    }
}
